﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DreamBuilder.Common;
using DreamBuilder.Core.AOP.Attribute;
using DreamBuilder.Core.Message;
using Microsoft.Web.UI.WebControls;
using DreamBuilder.UI.UserControls;


namespace Web.SystemConfig.Services
{
    public interface ISystem_Pluralist : IBusiness
    {
        int IsParentID();
        void CreateTree(System.Web.UI.WebControls.TreeView treeView);
        void CreateTreeLeft(System.Web.UI.WebControls.TreeView treeView);
        String GetNameByOrgId(string orgid);
        String GetNameByUserId(string userid);
        void CreateTreeOrgLeft(System.Web.UI.WebControls.TreeView treeView);
        void CreateTreeOrgRight(System.Web.UI.WebControls.TreeView treeView);
        String GetOrgIdByUserId(string useridto);
        void insertOrgIdtoAuthority(string id, string org_id);
         ResultInfo DeleteRoleAuthority(string pkValue);
        void ModifyUserInfo(string userName,DateTime userTime,string userSignId);
        void ModifyLastUserInfo(string userName, DateTime userTime, string userSignId);
        void modifyUserWord(string pkvalue,string userName);
        void ModifyOrgPluralistInfo(string userName, DateTime userTime, string userSignId);
        void ModifyLastOrgPluralistInfo(string userName, DateTime userTime, string userSignId);
        void ModifyPluralistInfo(string userName, DateTime userTime, string userSignId);
        void ModifyLastPluralistInfo(string userName, DateTime userTime, string userSignId);
        void UpdateUserAuthority(string userfrom, string userto, DateTime userTime);
        bool GetUserAuthority(string userfrom, string userto);
        bool DeleteAuthorityView(string pkValue);
        string GetpkNameByPositionpkValue(string pkValue);
        DataTable GetAuthority(string pkValue);
        DataTable GetOrgPlural(string pkValue);
        DataTable GetPluralist(string pkValue);
        DataTable GetSearchKeyWord(string pkValue);
        DataTable GetSignOptionList(string pkValue);
        int IsPositionID(string pkValue);
        bool getPluralistUserOrgInfo(string tableName, string orgid, string userid, string pkOrgId, string pkUserId);

    }
}
